import request from '@/utils/request'
const prefix = '/md_sys_role'

export function getAllRoleList(data) {
  return request({
    url: `${prefix}/getAllRoleList`, method: 'post', data
  })
}

export function getAllNormalRoleList(data) {
  return request({
    url: `${prefix}/getAllNormalRoleList`, method: 'post', data
  })
}

export function getRoleList(data) {
  return request({
    url: `${prefix}/getRoleList`, method: 'post', data
  })
}

export function createRole(data) {
  return request({
    url: `${prefix}/createRole`, method: 'post', data
  })
}

export function updateRole(data) {
  return request({
    url: `${prefix}/updateRole`, method: 'post', data
  })
}

export function deleteRole(id) {
  return request({
    url: `${prefix}/deleteRole/${id}`, method: 'delete'
  })
}
